import Vue from 'vue'
import Router from 'vue-router'
import tableMain from '@/components/table'
import headerBar from '@/components/module/header'
import asideNav from '@/components/module/aside'
import client from '@/components/client'
import company from '@/components/company'
import houses from '@/components/houses'
import finance from '@/components/finance'
import finance1 from '@/components/finance1'
import hallList from '@/components/hall'
import login from '@/components/login'
import announcementManagement from '@/components/announcementManagement'
import myAnnouncement from '@/components/myAnnouncement'
import announcementDetail from '@/components/module/announcementDetail'
// import textEdit from '@/components/module/textedit'


Vue.use(Router);

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      redirect:'/table',
      components:{
          tableMain,
          headerBar,
          asideNav,
      },
    },
    {
      path:'/table',
      components:{
        tableMain,
        headerBar,
        asideNav,
      }
    },
      {
          path:'/client',
          components:{
              client,
              headerBar,
              asideNav,
          }
      },
      {
          path:'/company',
          components:{
              company,
              headerBar,
              asideNav,
          }
      },
      {
          path:'/houses',
          components:{
              houses,
              headerBar,
              asideNav,
          }
      },
      {
          path:'/finance',
          components:{
              finance,
              headerBar,
              asideNav,
          }
      },
      {
          path:'/finance1',
          components:{
              finance1,
              headerBar,
              asideNav,
          }
      },
      {
          path:'/login',
          components:{
             login
          }
      },
      {
          path:'/hall',
          components:{
              headerBar,
              asideNav,
              hallList
          }
      },
      {
          path:'/announcementManagement',
          components:{
              headerBar,
              asideNav,
              announcementManagement
          },
      },
      {
          path:'/myAnnouncement',
          components:{
              headerBar,
              asideNav,
              // textEdit,
              myAnnouncement
          },
      }
  ]
})
